/**
 *
 */
package pt.mleiria.dao;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import pt.mleiria.dao.playground.TabuadaScoreDao;

/**
 * @author NB13712
 *
 */
@Entity
@Table(name = "user")
public class UserDao implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue
    private int id;
    @Column(name = "username")
    private String username;
    @Column(name = "password")
    private String password;
    @Column(name = "email")
    private String email;
    @Column(name = "profile_id")
    private int profile_id;
    @OneToMany(mappedBy = "userdao")
    List<TabuadaScoreDao> tsDao;
    @Column(name = "name")
    private String name;

    public List<TabuadaScoreDao> getTsDao() {
        return tsDao;
    }

    public void setTsDao(List<TabuadaScoreDao> tsDao) {
        this.tsDao = tsDao;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public int getProfile_id() {
        return profile_id;
    }

    public void setProfile_id(int profile_id) {
        this.profile_id = profile_id;
    }

    public UserDao() {

    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

}
